#ifndef __USBCONNECT__
#define __USBCONNECT__


#include <stdio.h>
#include <stdlib.h>


//usb端口数
#define SERIAL_PORT_NUM           4
//usb 端口名称长度
#define SERIAL_PORT_NAME_LEN      13


typedef void (*handleRecvDataCallBack)(char*, int,int);


typedef struct
{
    int portId;
    handleRecvDataCallBack handleCB;
}readFuncStruct;


void setRecvDataMinLength(int minLen);
void openSensorsPort();
void* readSensorsPortCallBack(void *funcStruct);
void closeSensorsPort(int port_fd);


#endif